package com.mbc.common.entities;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;

@SuppressWarnings("serial")
@Entity
@Table(name="Roles")
@NamedQueries({
	@NamedQuery(name="Role.findAll",query="SELECT r FROM Role r")
})
public class Role implements Serializable {

	@Id
	private long roleID;
	private String roleName;
	private String description;
	private Date createdDate;
	private long createdBy;
	private Date updatedDate;
	private long updatedBy;
	
	@Transient
	private List<LevelApplicationItem> levelAppItemList;

	public Role(){
	}

	public long getRoleID() {
		return roleID;
	}

	public void setRoleID(long roleID) {
		this.roleID = roleID;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public long getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(long createdBy) {
		this.createdBy = createdBy;
	}

	public Date getUpdatedDate() {
		return updatedDate;
	}

	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}

	public long getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(long updatedBy) {
		this.updatedBy = updatedBy;
	}

	public List<LevelApplicationItem> getLevelAppItemList() {
		return levelAppItemList;
	}

	public void setLevelAppItemList(List<LevelApplicationItem> levelAppItemList) {
		this.levelAppItemList = levelAppItemList;
	}

}
